package com.woniu.woniu_bx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.woniu_bx.pojo.HelperCate;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 帮助中心类别Mapper接口
 * @author sjy
 * @create 2022-08-27 16:13
 */
public interface HelperCateMapper extends BaseMapper<HelperCate> {
    /**
     * 查找帮助中心类别名的数量
     * @param name
     * @return
     */
    @Select("select count(*) from bx_helper_cate where name = #{name}")
     int selectNameNum(String name);

    @Select("select * from bx_helper_cate")
    List<HelperCate> getAll();

    @Select("select * from bx_helper_cate")
    List<HelperCate> getAllCate();
}
